package com.jmcba.init;

/**
 * 全手续
 */
public class CostAccessFull {
    public static float taxPurchase1Rate = (float) 11.3;
    private static int priceBadge = 32000;
    private CostRaw costRaw;
    private int tipS;
    private int price;

    public CostAccessFull(CostRaw costRaw, int tipS) {
        this.costRaw = costRaw;
        this.tipS = tipS;

        int taxPurchase = (int) (this.costRaw.getPrice() / CostAccessFull.taxPurchase1Rate);

        this.price = this.costRaw.getPrice() + taxPurchase + CostAccessFull.priceBadge + this.tipS;
    }

    public int getPrice() {
        return price;
    }
}
